﻿using OSGeo.GDAL;
using RemoteSensingImageDirectServer.Untils.ScopeSpace;

namespace RemoteSensingImageDirectServer.Untils.Source
{
    public interface IRSISingleImageSource
    {
        /// <summary>
        /// 获取原始未投影坐标数据
        /// </summary>
        /// <returns></returns>
        Dataset GetSrcDataset();

        /// <summary>
        /// 获取原始未投影坐标数据范围
        /// </summary>
        /// <returns></returns>
        RasterEnvelope GetSrcRasterEnvelope();

        /// <summary>
        /// 图层的有效性
        /// </summary>
        /// <returns></returns>
        bool Valid();

        /// <summary>
        /// 获取vrt数据的文件流
        /// </summary>
        /// <returns></returns>
        byte[] GetVrtBytes();

        /// <summary>
        /// 获取warp投影文件的数据流
        /// </summary>
        /// <returns></returns>
        byte[]? GetWarpBytes();
    }
}
